-- GENERATED SPELL FOR [Scarlet Sentinel] --


function spell0_1827(pUnit, Event) --@Overpower,n/a--
pUnit:FullCastSpellOnTarget(14895,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1827', 0, 1)
end

function spell1_1827(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1827', 583, 1)
end

function Sorts_1827(pUnit, Event)
local choix_sorts_1827 = math.random(0, 1)
if choix_sorts_1827 == 0 then
pUnit:RegisterEvent('spell0_1827', 1, 1)
end
if choix_sorts_1827 == 1 then
pUnit:RegisterEvent('spell1_1827', 1, 1)
end
end

function mob1827_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1827', math.random(1500, 3000), 1)
end

function mob1827_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1827_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1827_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1827, 1, 'mob1827_Action')
RegisterUnitEvent(1827, 2, 'mob1827_Leave')
RegisterUnitEvent(1827, 3, 'mob1827_Kill')
RegisterUnitEvent(1827, 4, 'mob1827_Die')
